package goover.unit03;

import java.util.HashSet;
import java.util.Iterator;

public class HashSetDemo01 {
    public  static void main(String[] args){
        HashSet hst = new HashSet();
        hst.add("data_1");
        hst.add("data_1");
        hst.add("data_2");
        System.out.println(hst);
        Iterator iterator = hst.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
